package com.thiswhyme.seata.order.feign;

import com.thiswhyme.common.response.ResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: thiswhyme
 * @date: 2020/9/4
 */
@FeignClient("seata-storage")
public interface StorageFeignService {

    @PostMapping("/storage/reduceStock")
    ResponseVo<Boolean> reduceStock(@RequestParam("productId") Long productId, @RequestParam("requiredAmount") Integer requiredAmount);
}
